package jmine.tec.web.front.pages.form;

import jmine.tec.web.wicket.pages.form.FormType;

import org.apache.wicket.model.IModel;

/**
 * Factory for HandledFormPanels
 * 
 * @author israel.crisanto
 */
public interface HandledFormPanelFactory {

    /**
     * Create a handled form object to be rendered
     * 
     * @param panelId panel markup id
     * @param panelModel panel model
     * @param formType tipe of form to use {@link FormType}
     * @return handled form object to be used as a wicket panel
     */
    AbstractHandledFormPanel createPanel(String panelId, IModel<?> panelModel, FormType formType);
}
